<table class="table table-condensed" id="jp">
  <thead>
	<tr>
		<th width="30">#</th>
		<th width="160">Nama Tagihan</th>
		<th>Besar Tagihan</th>
		<th>Tempo Pembayaran</th>
		<th>Keterangan</th>
	</tr>
  </thead>
  <tbody>
	<?php 
		if(count($list)>0){
			$i = 1; 
			foreach ($list as $row) {
	?>
	<tr class="hover">
		<td><?php echo $i++ ?></td>
		<td><?php echo $row->nama_non_sy; ?></td> 
		<td><?php echo $row->besar_bayar; ?></td> 
		<td><?php echo hijriahSimple($row->mulai_bayar);?> <i class="fa fa-arrow-right"></i> <?php echo hijriahSimple($row->akhir_bayar);?></td> 
		<td>
			<?php echo $row->ket; ?>
			<a class="editorLink pull-right" data-reveal-id="delModal" nama="<?php echo $row->nama_non_sy; ?>" 2nd="<?php echo $row->besar_bayar; ?>" 3rd="<?php foreach ($list_jp as $rowt) {echo $rowt->j_pendidikan;}?>" hpid="<?php echo $row->id_a_non_sy;?>" data-reveal><span class="glyphicon glyphicon-floppy-remove"></span></a>
		</td> 
	</tr>
	<?php
			}
		}else{
	?>
	<tr>
		<td colspan="5"><center>Belum ada pengaturan tagihan non syahriyah pada jenjang <?php foreach ($list_jp as $row) {echo $row->j_pendidikan;}?> </center></td>
	</tr>
	<?php
		}
	?>
  </tbody>
</table>	